package com.fzn.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: SpringMVC
 * 描述：   第一个处理器入门
 * @author: fzn
 * @create: 2022-02-28 20:38
 **/
@Controller
public class HelloController {

    @RequestMapping("/")
    public String index() {
        //设置视图名称
        return "index";
    }

    @RequestMapping("/target")
    public String helloWorld() {
        return "target";
    }
}